<div class="types">
      <p class="df tit"><span class="a"></span><span class="b">选择科室类别</span></p>
      <p class="df type bb">
        {{each data as item index}}
<a class="a" href="#d{{item.categoryId}}" data-categoryId="{{item.categoryId}}">{{item.categoryName}}</a>
        {{/each}}
      </p>
  </div>
  {{each data as item }}
<div class="offics">
<p class="tit bb"><span class="a" id="d{{item.categoryId}}" ' data-categoryId="{{item.categoryId}}">{{item.categoryName}}</span></p>
  <p class="df off bb">
{{each item.items as items }}
<span class="of js_deptId" data-deptid="{{items.deptId}}" data-deptname="{{items.deptName}}">{{items.deptName}}</span>
{{/each}}
  </p>
</div>
  {{/each}}
  
 